<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>generic-genetic-algorithm: GeneticMinimizer Class Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">generic-genetic-algorithm
   &#160;<span id="projectnumber">0.1</span>
   </div>
   <div id="projectbrief">Demonstrates generic genetic algorithm for purposes of learning or writing solutions to simple problem.</div>
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.6 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">GeneticMinimizer Class Reference</div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="GeneticMinimizer" -->
<p><code>#include &lt;<a class="el" href="_genetic_minimizer_8h_source.html">GeneticMinimizer.h</a>&gt;</code></p>

<p><a href="class_genetic_minimizer-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_genetic_minimizer.html#a6808d7c4a0d7def0176477a71903d985">GeneticMinimizer</a> (<a class="el" href="class_function.html">Function</a> &amp;fun, <a class="el" href="class_selection_operator.html">SelectionOperator</a> &amp;selOper, <a class="el" href="class_crossover_operator.html">CrossoverOperator</a> &amp;crossOper, <a class="el" href="class_mutation_operator.html">MutationOperator</a> &amp;mutatOper)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_genetic_minimizer.html#ab8aa90fcfbef05801750cae2ccebac10">Initialize</a> (int numberOfIndividuals, bool minimization, int precision)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_genetic_minimizer.html#ad926fe32ee5a7f004216308e420b0560">Optimize</a> (unsigned int numberOfIterations)</td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>Main class responsible for performing optimization. </p>
</div><hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a6808d7c4a0d7def0176477a71903d985"></a><!-- doxytag: member="GeneticMinimizer::GeneticMinimizer" ref="a6808d7c4a0d7def0176477a71903d985" args="(Function &amp;fun, SelectionOperator &amp;selOper, CrossoverOperator &amp;crossOper, MutationOperator &amp;mutatOper)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_genetic_minimizer.html#a6808d7c4a0d7def0176477a71903d985">GeneticMinimizer::GeneticMinimizer</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_function.html">Function</a> &amp;&#160;</td>
          <td class="paramname"><em>fun</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="class_selection_operator.html">SelectionOperator</a> &amp;&#160;</td>
          <td class="paramname"><em>selOper</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="class_crossover_operator.html">CrossoverOperator</a> &amp;&#160;</td>
          <td class="paramname"><em>crossOper</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="class_mutation_operator.html">MutationOperator</a> &amp;&#160;</td>
          <td class="paramname"><em>mutatOper</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Initalizes minimizer by setting required operators and function which describes the problem. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">fun</td><td><a class="el" href="class_function.html">Function</a> to optimize </td></tr>
    <tr><td class="paramname">selOper</td><td>Selection operator </td></tr>
    <tr><td class="paramname">crossOper</td><td>Crossover operator </td></tr>
    <tr><td class="paramname">mutatOper</td><td>Mutation operator </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="ab8aa90fcfbef05801750cae2ccebac10"></a><!-- doxytag: member="GeneticMinimizer::Initialize" ref="ab8aa90fcfbef05801750cae2ccebac10" args="(int numberOfIndividuals, bool minimization, int precision)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="class_genetic_minimizer.html#ab8aa90fcfbef05801750cae2ccebac10">GeneticMinimizer::Initialize</a> </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>numberOfIndividuals</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>minimization</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>precision</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Initializes minimizer. Must be called before optimization! </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">numberOfIndividuals</td><td>Number of chromosomes in population </td></tr>
    <tr><td class="paramname">minimization</td><td>True if minimization, False if should search for maximum </td></tr>
    <tr><td class="paramname">precision</td><td>To which decimal precision should search for solution </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ad926fe32ee5a7f004216308e420b0560"></a><!-- doxytag: member="GeneticMinimizer::Optimize" ref="ad926fe32ee5a7f004216308e420b0560" args="(unsigned int numberOfIterations)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double <a class="el" href="class_genetic_minimizer.html#ad926fe32ee5a7f004216308e420b0560">GeneticMinimizer::Optimize</a> </td>
          <td>(</td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>numberOfIterations</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Returns best found solution of problem. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">numberOfIterations</td><td>Number of iterations to perform </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>/Users/scompany/Projects/FER/generic-genetic-algorithm/<a class="el" href="_genetic_minimizer_8h_source.html">GeneticMinimizer.h</a></li>
<li>/Users/scompany/Projects/FER/generic-genetic-algorithm/GeneticMinimizer.cpp</li>
</ul>
</div>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Functions</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Generated on Tue Dec 6 2011 02:53:33 for generic-genetic-algorithm by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.6
</small></address>

</body>
</html>
